﻿using System.ComponentModel.DataAnnotations;

namespace Web.ViewModels
{
    public class ProjectShortDescriptionModel
    {
        public int id { get; set; }

        [StringLength(200, ErrorMessage = "Краткое описание должно быть не длиннее 200 символов")]
        public string ShortDescription { get; set; }

        public int OrganizerId { get; set; }

        public string OrganizerName { get; set; }

        public ProjectShortDescriptionModel() { }

        public ProjectShortDescriptionModel(int id, string shortDescription, int userId, string userDisplayName)
        {
            this.id = id;
            ShortDescription = shortDescription;
            OrganizerId = userId;
            OrganizerName = userDisplayName;
        }
    }
}